package retry;

import model.RpcResponse;

import java.util.concurrent.Callable;

/**
 * 不重试策略
 */
public class NoRetryStrategy implements RetryStrategy{
    public RpcResponse retry(Callable<RpcResponse> callable) throws Exception{
        return callable.call();//直接执行
    }
}
